// svg图标组件
import SvgIcon from '@/components/SvgIcon/index.vue'
// 分类组件
import Category from '@/components/Category/index.vue'

// 注册所有el icon图标组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

export default {
	install(app: any) {
		// 注册为全局组件
		app.component('SvgIcon', SvgIcon)
		app.component('Category', Category)

		// 注册所有el icon图标组件
		for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
			app.component(key, component)
		}
	}
}
